package getConcatenation;

public class Solution {
    public int[] getConcatenation(int[] nums) {
        // ans[i] == nums[i]
        // ans[i+n] == nums[i];
        int n = nums.length;
        int[] ans = new int[nums.length*2];
        for (int i = 0; i < n; i++) {
            ans[i] = nums[i];
            ans[i+n] = nums[i];
        }
        return ans;
    }
}
